package com.itheima.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.persistence.Id;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 代办事项表
 * </p>
 *
 * @author wangchang
 * @since 2020-08-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Table(name = "t_todo")
@ApiModel(value="Todo对象", description="代办事项表")
public class Todo implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "唯一uid")
    @Id
    private String uid;

    @ApiModelProperty(value = "管理员uid")
    private String adminUid;

    @ApiModelProperty(value = "内容")
    private String text;

    @ApiModelProperty(value = "表示事项是否完成（0：未完成 1：已完成）")
    private Boolean done;

    @ApiModelProperty(value = "状态")
    private Boolean status;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;


}
